package cut;

public class LogicStructure {

    public int sequence(int a, int b) {
        return a + b;
    }

    public boolean soloIf(int op) {
        if (op > 0)
            return true;
        return false;
    }

    public int Str(String s) {
        if(s.equals("Test")) {
            System.out.println(s);
            return 1;
        }
        return 0;
    }

    public int ifElse(int op) {
        while(op>1) {
            op--;
            if(op==1)
                return 1;
        }
        return 0;
    }

    public int myTest(int op1,int op2,int op3,int op4){
        if(op1>op2 && op3>=op4){
            return op1+op2;
        }else if(op1==op2){
            return op1*op2;
        }else {
            return 2*op1-op2;
        }
    }

    public String multipleIf(int op,boolean b,Character c,long d,short e) {
        if (op % 15==0)
            return "FizzBuzz";
        else if (op % 5 == 0)
            return "Buzz";
        else if (op % 3 == 0)
            return "Fizz";
        else
            return Integer.toString(op);
    }

    public int generateBool(boolean b){
        int result = 0;
        if(b) result = 0;
        if(b == true) result = 1;
        if(!b) result = 2;
        if(b == false) result = 3;
        if(b != true) result = 4;
        if(b == true || b == false) result = 5;
        if(b == true && b == false) result = 6;
        if(b == true && b != false) result = 7;
        return result;
    }

    public boolean boo(boolean m){
        if(m==true){
            return false;
        }
        else return true;
    }
}
